package com.xuecheng.content.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.api.content.model.dto.TeachplanDTO;
import com.xuecheng.api.content.model.dto.TeachplanMediaDTO;
import com.xuecheng.content.entity.Teachplan;

/**
 * <p>
 * 课程计划 服务类
 * </p>
 *
 * @author itcast
 * @since 2022-03-29
 */
public interface TeachplanService extends IService<Teachplan> {

    TeachplanDTO queryTreeNodesByCourseId(Long courseId, Long companyId);

    TeachplanDTO createOrModifyTeachPlan(TeachplanDTO dto, Long companyId);

    void removeTeacherPlan(Long teachPlanId, Long companyId);

    /**
     * 课程计划绑定媒资信息
     */
    TeachplanMediaDTO associateMedia(TeachplanMediaDTO dto, Long companyId);
}
